if(!jsx3.lang.Class.forName("tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfigService")) {

    /**
     * loggingconfig
     */
    jsx3.lang.Package.definePackage("tibco.admin.enterpriseAssets.servers.loggingconfig", function (loggingconfig) {
    });

    /**
     * LoggingConfigService
     */
    jsx3.lang.Class.defineClass("tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfigService", null, [], function(LoggingConfigService) {

        LoggingConfigService.END_POINT_URL_RESOURCE = "/amxadministrator/services/sharedresources";
        LoggingConfigService.END_POINT_URL_CONFIG = "/LogServiceAndViewer/services/LogServiceConfigService";

        LoggingConfigService.SOAP_SR_MSG_NAMESPACE = "xmlns:jsx1='http://matrix.tibco.com/admin/server/services/sharedresources/messages'";
        LoggingConfigService.SOAP_SR_TYP_NAMESPACE = "xmlns:jsx1='http://matrix.tibco.com/admin/server/services/sharedresources/types'";
        LoggingConfigService.SOAP_CM_TYP_NAMESPACE = "xmlns:jsx1='http://matrix.tibco.com/admin/server/services/matrixcommon/types'";

        //LoggingConfigService.SOAP_CONFIG_NAMESPACE = "xmlns:jsx1='http://tibco.com/commonlogging/logserviceconfig'";
		LoggingConfigService.SOAP_CONFIG_NAMESPACE = "xmlns:ns1='http://tibco.com/commonlogging/logserviceconfig'";


        //call this method to begin the service call (eg.service.callgetResourceConfigurationsInEnterprise();)
        LoggingConfigService.callgetResourceConfigurationsInEnterprise = function() {	
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/getJdbcAndEmsResource.xml", "getResourceConfigurationsInEnterprise", "getResourceConfigurationsInEnterprise");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_RESOURCE);
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.ongetResourceConfigurationsInEnterpriseSuccess);
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.ongetResourceConfigurationsInEnterpriseError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.ongetResourceConfigurationsInEnterpriseInvalid);
            objService.doCall();
        };

        LoggingConfigService.ongetResourceConfigurationsInEnterpriseSuccess = function(objEvent) {
            var responseXML = objEvent.target.getInboundDocument();
            var nodeListOfResourceSummary = responseXML.selectSingleNode(".//jsx1:ListOfResourceSummary", LoggingConfigService.SOAP_SR_MSG_NAMESPACE);
            var cdfJdbcSelect = new jsx3.xml.Document().loadXML("<data jsxid='jsxroot'></data>");
            var cdfEmsSelect = new jsx3.xml.Document().loadXML("<data jsxid='jsxroot'></data>");

            var newRecordNode = cdfJdbcSelect.createNode(jsx3.xml.Entity.TYPEELEMENT, "record");
            newRecordNode.setAttribute("jsxid", "0");
            var lblJDBCNull_LGC99 = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getExternalString("lblJDBCNull_LGC99");
            newRecordNode.setAttribute("jsxtext", lblJDBCNull_LGC99);
            cdfJdbcSelect.appendChild(newRecordNode);

            var newRecordNode = cdfEmsSelect.createNode(jsx3.xml.Entity.TYPEELEMENT, "record");
            newRecordNode.setAttribute("jsxid", "0");
            var lblEMSNull_LGC99 = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getExternalString("lblEMSNull_LGC99");
            newRecordNode.setAttribute("jsxtext", lblEMSNull_LGC99);
            cdfEmsSelect.appendChild(newRecordNode);

            var nodeNextChild = nodeListOfResourceSummary.getFirstChild();
            while(nodeNextChild != null) {
                var resourceId = nodeNextChild.selectSingleNode(".//jsx1:entityId", LoggingConfigService.SOAP_CM_TYP_NAMESPACE);

                var resourceName = nodeNextChild.selectSingleNode(".//jsx1:name", LoggingConfigService.SOAP_CM_TYP_NAMESPACE);

                var resourceType = nodeNextChild.selectSingleNode(".//jsx1:type", LoggingConfigService.SOAP_SR_TYP_NAMESPACE);
                if(resourceType.getValue().toLowerCase() == "jdbc") {
                    var newRecordNode = cdfJdbcSelect.createNode(jsx3.xml.Entity.TYPEELEMENT, "record");
                    //, LoggingService.SOAP_FULL_NAMESPACE);
                    newRecordNode.setAttribute("jsxid", resourceId.getValue());
                    newRecordNode.setAttribute("jsxtext", resourceName.getValue());
                    cdfJdbcSelect.appendChild(newRecordNode);
                }
                else if(resourceType.getValue().toLowerCase() == "jms") {
                    var newRecordNode = cdfEmsSelect.createNode(jsx3.xml.Entity.TYPEELEMENT, "record");
                    //, LoggingService.SOAP_FULL_NAMESPACE);
                    newRecordNode.setAttribute("jsxid", resourceId.getValue());
                    newRecordNode.setAttribute("jsxtext", resourceName.getValue());
                    cdfEmsSelect.appendChild(newRecordNode);
                }

                nodeNextChild = nodeNextChild.getNextSibling();
            }
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getCache().setDocument(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.cdfJdbcSelectName, cdfJdbcSelect);
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getCache().setDocument(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.cdfEmsSelectName, cdfEmsSelect);

			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getJSXByName("selConfigJMS_CL").repaint();  
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getJSXByName("selConfigJDBC_CL").repaint(); 

        };

        LoggingConfigService.ongetResourceConfigurationsInEnterpriseError = function(objEvent) {
            var myStatus = objEvent.target.getRequest().getStatus();
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServErrTitle","msgServErrMsg", myStatus);
        };

        LoggingConfigService.ongetResourceConfigurationsInEnterpriseInvalid = function(objEvent) {
            var msgServInvTitle = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getExternalString("msgServInvTitle");
            var msgServInvMsg = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getExternalString("msgServInvMsg");
            tibco.admin.Main.alert(msgServInvTitle, msgServInvMsg + objEvent.message);
        };

        //call this method to begin the service call (eg.service.callinitConfig();)
        LoggingConfigService.callinitConfig = function() {
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/initLogService.xml", "initConfig", "initConfig");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_CONFIG);
	
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.oninitConfigSuccess);
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.oninitConfigError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.oninitConfigInvalid);
            objService.doCall();
        };

        LoggingConfigService.oninitConfigSuccess = function(objEvent) {
            var responseXML = objEvent.target.getInboundDocument();
            var nodeInitConfigResponse = responseXML.selectSingleNode(".//ns1:initConfigResponse", LoggingConfigService.SOAP_CONFIG_NAMESPACE);
            var nodeResultFlag = nodeInitConfigResponse.selectSingleNode(".//ns1:resultFlag", LoggingConfigService.SOAP_CONFIG_NAMESPACE);		
            
            tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.initConfigResponse(nodeInitConfigResponse);
        };

        LoggingConfigService.oninitConfigError = function(objEvent) {
            var myStatus = objEvent.target.getRequest().getStatus();
            tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServErrTitle","msgServErrMsg", myStatus);
        };

        LoggingConfigService.oninitConfigInvalid = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServInvTitle","msgServInvMsg", objEvent.message);
        };

        //call this method to begin the service call (eg.service.callupdateConfig();)
        LoggingConfigService.callupdateConfig = function() {
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/saveLogService.xml", "saveLogservice", "saveLogservice");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_CONFIG);
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.onupdateConfigSuccess);
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.onupdateConfigError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.onupdateConfigInvalid);
            objService.doCall();
        };

        LoggingConfigService.onupdateConfigSuccess = function(objEvent) {    
			var responseXML = objEvent.target.getInboundDocument();
			var flag = responseXML.selectSingleNode(".//ns1:resultFlag",LoggingConfigService.SOAP_CONFIG_NAMESPACE).getValue();

			if(flag>=0){							
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.refreshConfig();				
			}else{
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServErrorTitle_CL","msgServError_CL"+flag);
			}

        };

        LoggingConfigService.onupdateConfigError = function(objEvent) {
            var myStatus = objEvent.target.getRequest().getStatus();
            var selJDBCName_LGC = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getJSXByName("selJDBCName_LGC");
            var selEMSName_LGC = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getJSXByName("selEMSName_LGC");
            selJDBCName_LGC.setEnabled(jsx3.gui.Form.STATEENABLED, true);
            selEMSName_LGC.setEnabled(jsx3.gui.Form.STATEENABLED, true);

			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServErrTitle","msgServErrMsg", objEvent.message);
        };

        LoggingConfigService.onupdateConfigInvalid = function(objEvent) {
            var selJDBCName_LGC = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getJSXByName("selJDBCName_LGC");
            var selEMSName_LGC = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getJSXByName("selEMSName_LGC");
            selJDBCName_LGC.setEnabled(jsx3.gui.Form.STATEENABLED, true);
            selEMSName_LGC.setEnabled(jsx3.gui.Form.STATEENABLED, true);

			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServInvTitle","msgServInvMsg", objEvent.message);
        };

        LoggingConfigService.calllistLogservice = function() {			
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/listLogService.xml", "listLogservice", "listLogservice");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_CONFIG);
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.onlistLogserviceSuccess);			
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.onlistLogserviceError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.onlistLogserviceInvalid);
            objService.doCall();
        };

		 LoggingConfigService.onlistLogserviceSuccess = function(objEvent) {

            var responseXML = objEvent.target.getInboundDocument();
			var dataListCDF = responseXML.selectSingleNode(".//ns1:DataListCDF",LoggingConfigService.SOAP_CONFIG_NAMESPACE);
			var flag = responseXML.selectSingleNode(".//ns1:resultFlag",LoggingConfigService.SOAP_CONFIG_NAMESPACE);
			var logServices = new jsx3.xml.Document().loadXML("<data jsxid='jsxroot'>"+ dataListCDF.getValue() +"</data>");

			tibco.admin.Main.getServer().getCache().setDocument("listMgtLogServiceCatchId_CL",logServices);

			tibco.admin.Main.getServer().getJSXByName("listMgtLogService_CL").repaint();

        };
		
		LoggingConfigService.onlistLogserviceError = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };

		LoggingConfigService.onlistLogserviceInvalid = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };

		LoggingConfigService.callstopLogservice = function() {	
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/startStopLogService.xml", "stopLogservice", "stopLogservice");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_CONFIG);
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.onstopLogserviceSuccess);	
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.onstopLogserviceError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.onstopLogserviceInvalid);
            objService.doCall();
        };

		LoggingConfigService.onstopLogserviceSuccess = function(objEvent) {
            var responseXML = objEvent.target.getInboundDocument();
			var flag = responseXML.selectSingleNode(".//ns1:resultFlag",LoggingConfigService.SOAP_CONFIG_NAMESPACE).getValue();
			if(flag>=0){
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.setStatusButton("Stopped");
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.refreshManagement();
			}
        };
		
		LoggingConfigService.onstopLogserviceError = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };

		LoggingConfigService.onstopLogserviceInvalid = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };


		LoggingConfigService.callsetDefaultLogservice = function() {
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/setDefaultLogService.xml", "setDefaultLogservice", "setDefaultLogservice");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_CONFIG);
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.onsetDefaultLogserviceSuccess);	
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.onsetDefaultLogserviceError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.onsetDefaultLogserviceInvalid);
            objService.doCall();
        };

		LoggingConfigService.onsetDefaultLogserviceSuccess = function(objEvent) {
            var responseXML = objEvent.target.getInboundDocument();
			var flag = responseXML.selectSingleNode(".//ns1:resultFlag",LoggingConfigService.SOAP_CONFIG_NAMESPACE).getValue();
			if(flag>=0){
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.setDefaultButton("Yes");
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.refreshManagement();
			}
        };
		
		LoggingConfigService.onsetDefaultLogserviceError = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };

		LoggingConfigService.onsetDefaultLogserviceInvalid = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };


		LoggingConfigService.callallModelList = function() {	
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/commonLogging.xml", "listAllModel", "listAllModel");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_CONFIG);
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.onallModelListSuccess);	
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.onallModelListError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.onallModelListInvalid);
            objService.doCall();
        };

		LoggingConfigService.onallModelListSuccess = function(objEvent) {
            var responseXML = objEvent.target.getInboundDocument();
			var dataListCDF = responseXML.selectSingleNode(".//ns1:modelListCDF",LoggingConfigService.SOAP_CONFIG_NAMESPACE);			
			var flag = responseXML.selectSingleNode(".//ns1:resultFlag",LoggingConfigService.SOAP_CONFIG_NAMESPACE);
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.modelListCDF = dataListCDF.getValue();		
    
        };
		
		LoggingConfigService.onallModelListError = function(objEvent) {
			var myStatus = objEvent.target.getRequest().getStatus();
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServErrTitle","msgServErrMsg", objEvent.message);
        };

		LoggingConfigService.onallModelListInvalid = function(objEvent) {
			var myStatus = objEvent.target.getRequest().getStatus();
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServErrTitle","msgServErrMsg", objEvent.message);
        };


		
		LoggingConfigService.callstartLogservice = function() {	
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/startStopLogService.xml", "startLogservice", "startLogservice");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_CONFIG);
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.onstartLogserviceSuccess);	
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.onstartLogserviceError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.onstartLogserviceInvalid);
            objService.doCall();
        };

		 LoggingConfigService.onstartLogserviceSuccess = function(objEvent) {
            var responseXML = objEvent.target.getInboundDocument();
			var flag = responseXML.selectSingleNode(".//ns1:resultFlag",LoggingConfigService.SOAP_CONFIG_NAMESPACE).getValue();
			if(flag>=0){
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.setStatusButton("Running");
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.refreshManagement();
			}else{
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServErrorTitle_CL","msgServError_CL"+flag);
			}
			
        };
		
		LoggingConfigService.onstartLogserviceError = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };

		LoggingConfigService.onstartLogserviceInvalid = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };
		
		LoggingConfigService.calldeleteLogservice = function() {	
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/deleteLogService.xml", "deleteLogservice", "deleteLogservice");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_CONFIG);
            //subscribe and call
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.ondeleteLogserviceSuccess);	
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.ondeleteLogserviceError);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.ondeleteLogserviceInvalid);
            objService.doCall();

        };

		LoggingConfigService.ondeleteLogserviceSuccess = function(objEvent) {
			var responseXML = objEvent.target.getInboundDocument();
			var flag = responseXML.selectSingleNode(".//ns1:resultFlag",LoggingConfigService.SOAP_CONFIG_NAMESPACE).getValue();
			if(flag>0){			
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.refreshManagement();
			}else{
				tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgServErrorTitle_CL","msgServError_CL"+flag);
			}
        };
		
		LoggingConfigService.ondeleteLogserviceError = function(objEvent) {
        };

		LoggingConfigService.ondeleteLogserviceInvalid = function(objEvent) {
        };


        LoggingConfigService.callgetResourceConfigurationsInEnterpriseRef = function() {
            var objService = tibco.admin.Main.loadService(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getInstance().getNamespace(),
                    "tibco/admin/enterpriseAssets/servers/loggingconfig/rules/getJdbcAndEmsResource.xml", "getResourceConfigurationsInEnterprise", "getResourceConfigurationsInEnterprise");
            objService.setEndpointURL(LoggingConfigService.END_POINT_URL_RESOURCE);
            objService.subscribe(jsx3.net.Service.ON_SUCCESS, LoggingConfigService.ongetResourceConfigurationsInEnterpriseSuccessRef);
            objService.subscribe(jsx3.net.Service.ON_ERROR, LoggingConfigService.ongetResourceConfigurationsInEnterpriseErrorRef);
            objService.subscribe(jsx3.net.Service.ON_INVALID, LoggingConfigService.ongetResourceConfigurationsInEnterpriseInvalidRef);
            objService.doCall();
        };

        LoggingConfigService.ongetResourceConfigurationsInEnterpriseSuccessRef = function(objEvent) {
            var responseXML = objEvent.target.getInboundDocument();
            var nodeListOfResourceSummary = responseXML.selectSingleNode(".//jsx1:ListOfResourceSummary", LoggingConfigService.SOAP_SR_MSG_NAMESPACE);
            var cdfJdbcSelect = new jsx3.xml.Document().loadXML("<data jsxid='jsxroot'></data>");
            var cdfEmsSelect = new jsx3.xml.Document().loadXML("<data jsxid='jsxroot'></data>");

            var newRecordNode = cdfJdbcSelect.createNode(jsx3.xml.Entity.TYPEELEMENT, "record");
            newRecordNode.setAttribute("jsxid", "0");
            var lblJDBCNull_LGC99 = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getExternalString("lblJDBCNull_LGC99");
            newRecordNode.setAttribute("jsxtext", lblJDBCNull_LGC99);
            cdfJdbcSelect.appendChild(newRecordNode);

            var newRecordNode = cdfEmsSelect.createNode(jsx3.xml.Entity.TYPEELEMENT, "record");
            newRecordNode.setAttribute("jsxid", "0");
            var lblEMSNull_LGC99 = tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getExternalString("lblEMSNull_LGC99");
            newRecordNode.setAttribute("jsxtext", lblEMSNull_LGC99);
            cdfEmsSelect.appendChild(newRecordNode);

            var nodeNextChild = nodeListOfResourceSummary.getFirstChild();
            while(nodeNextChild != null) {
                var resourceId = nodeNextChild.selectSingleNode(".//jsx1:entityId", LoggingConfigService.SOAP_CM_TYP_NAMESPACE);
                var resourceName = nodeNextChild.selectSingleNode(".//jsx1:name", LoggingConfigService.SOAP_CM_TYP_NAMESPACE);
                var resourceType = nodeNextChild.selectSingleNode(".//jsx1:type", LoggingConfigService.SOAP_SR_TYP_NAMESPACE);
                if(resourceType.getValue().toLowerCase() == "jdbc") {
                    var newRecordNode = cdfJdbcSelect.createNode(jsx3.xml.Entity.TYPEELEMENT, "record");
                    //, LoggingService.SOAP_FULL_NAMESPACE);
                    newRecordNode.setAttribute("jsxid", resourceId.getValue());
                    newRecordNode.setAttribute("jsxtext", resourceName.getValue());
                    cdfJdbcSelect.appendChild(newRecordNode);
                }
                else if(resourceType.getValue().toLowerCase() == "jms") {
                    var newRecordNode = cdfEmsSelect.createNode(jsx3.xml.Entity.TYPEELEMENT, "record");
                    //, LoggingService.SOAP_FULL_NAMESPACE);
                    newRecordNode.setAttribute("jsxid", resourceId.getValue());
                    newRecordNode.setAttribute("jsxtext", resourceName.getValue());
                    cdfEmsSelect.appendChild(newRecordNode);
                }

                nodeNextChild = nodeNextChild.getNextSibling();
            }

            tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getCache().setDocument(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.cdfJdbcSelectName, cdfJdbcSelect);
            tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.getServer().getCache().setDocument(tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.cdfEmsSelectName, cdfEmsSelect);

            tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.refreshConfigResponse();

        };

        LoggingConfigService.ongetResourceConfigurationsInEnterpriseErrorRef = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };

        LoggingConfigService.ongetResourceConfigurationsInEnterpriseInvalidRef = function(objEvent) {
			tibco.admin.enterpriseAssets.servers.loggingconfig.LoggingConfig.printFormatMessage("msgListServErrTitle","msgListServErrMsg");
        };

    });

}